#include "bitmaps.h"

ALLEGRO_BITMAP *Bitmaps::get_default_bitmap(Movable_type type)
{
	ALLEGRO_BITMAP *this_bitmap = al_create_bitmap(50,50);
	al_set_target_bitmap(this_bitmap);
	al_clear_to_color(al_map_rgb(0,0,0));

	switch(type)
	{
	case DIGDUG:	
				////Body
				//al_draw_filled_rectangle(20,28,32,40,al_map_rgb(0,255,0));
				////Arm
				//al_draw_filled_rectangle(25,28,28,53,al_map_rgb(0,255,125));
				////Head
				//al_draw_filled_circle(25,20,8, al_map_rgb(125,255,0));
				////eye
				//al_draw_filled_circle(30,20,2, al_map_rgb(255,255,0));
				////leg
				//al_draw_filled_rectangle(20,40,24,48, al_map_rgb(125,0,125));
				//al_draw_filled_rectangle(20,46,27,48, al_map_rgb(125,0,125));

				//al_draw_filled_rectangle(25,40,29,48, al_map_rgb(125,0,125));
				//al_draw_filled_rectangle(25,46,32,48, al_map_rgb(125,0,125));

				//Hat triangle
				al_draw_filled_triangle(10,10,10,40,40,25,al_map_rgb(125,255,125));
				////Hat rectangle
				//al_draw_filled_rectangle(10,12,40,15,al_map_rgb(0,255,60));
				////hat bop
				//al_draw_filled_circle(25,5,5, al_map_rgb(255,255,125));
		
				break;
	case MONSTER:	
		
				al_clear_to_color(al_map_rgb(0,0,0));
				//Body
				al_draw_filled_circle(25,25,20,al_map_rgb(255,0,0));
				//Face
				al_draw_filled_triangle(10,10,10,40,40,25, al_map_rgb(0,0,255));
		
				break;
	case SAND:		

				al_clear_to_color(al_map_rgb(255,222,173));
				al_draw_filled_rectangle(10,10,40,40,al_map_rgb(139,119,101));
				al_draw_filled_rectangle(20,20,30,30,al_map_rgb(184,134,011));

				break;

	} 

	return this_bitmap;
}

//ALLEGRO_BITMAP *Bitmaps::digdug_bitmap()
//{
//	
//
//	
//		
//	return this_bitmap;
//}
//
//ALLEGRO_BITMAP *Bitmaps::monster_bitmap()
//{
//	
//		
//	return this_bitmap;
//}
//
//
//ALLEGRO_BITMAP *Bitmaps::sand_bitmap()
//{
//	
//	return this_bitmap;
//}